package com.tbit.uqbike.client.service;

import com.alipay.api.response.AlipaySystemOauthTokenResponse;
import com.tbit.uqbike.client.pojo.AliConfigWrap;
import com.tbit.uqbike.client.pojo.ZfbPayConfig;

/**
 * @Author: chen
 * @Description:
 * @Date: 创建于 10:04 2020/10/19
 */
public interface AliConfigService {

    /**
     * 获取支付宝连接客户端
     *
     * @param accountId
     * @param zfbPayConfig
     * @return
     */
    AliConfigWrap getAliPayClient(Integer accountId, ZfbPayConfig zfbPayConfig);

    /***
     * 获取支付宝用用户id
     * @param accountId
     * @param authCode
     * @return
     */
    AlipaySystemOauthTokenResponse alipaySystemOauthToken(Integer accountId, String authCode,
                                                          ZfbPayConfig zfbPayConfig);

    /**
     * 解密获取手机号
     *
     * @param accountId
     * @param sign
     * @param content
     * @return
     */
    String decryptPhone(Integer accountId, String sign, String content, ZfbPayConfig zfbPayConfig);
}
